package com.ocom.mqsubsidy.feign;

import com.ocom.common.constant.PayConfigUrl;
import com.ocom.common.request.payconfig.AddSubsidyDataByPersonRequest;
import com.ocom.common.request.payconfig.CouponsDataExportRequest;
import com.ocom.common.request.payconfig.SubsidyDataRequest;
import com.ocom.common.request.payconfig.SubsidyListRequest;
import com.ocom.common.resp.Result;
import com.ocom.common.vo.payconfig.FeeDataListVo;
import com.ocom.common.vo.webapi.ExcelCouponsVoucherListVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "payconfig")
public interface PayConfigClientService {

    @PostMapping(PayConfigUrl.Url_grant_subsidy)
    public Result grantSubsidy(@RequestParam("comId") Long comId,@RequestParam("month") String month,@RequestParam("times") Integer times);

    @PostMapping(PayConfigUrl.Url_subsidyList)
    public Result subsidyList(@RequestBody SubsidyListRequest subsidyListRequest);


    @PostMapping(PayConfigUrl.Url_subsidyData)
    public Result subsidyData(@RequestBody SubsidyDataRequest subsidyDataRequest);

    @PostMapping(PayConfigUrl.Url_couponsDataList)
    public Result couponsDataList(@RequestBody CouponsDataExportRequest request);

    @PostMapping(PayConfigUrl.Url_addSubsidyDataByPerson)
    public Result addSubsidyDataByPerson(@RequestBody AddSubsidyDataByPersonRequest addSubsidyDataByPersonRequest);

    @PostMapping(PayConfigUrl.URL_addFeeDataByPerson)
    Result addFeeDataByPerson(FeeDataListVo request);

    @PostMapping(PayConfigUrl.URL_FeeDetailOnShow)
    Result feeDataList(@RequestBody FeeDataListVo request);

    @PostMapping(PayConfigUrl.url_importCouponsVoucher)
    Result importCouponsVoucher(@RequestBody ExcelCouponsVoucherListVo excelAddCouponsVo);
}
